#include "GameScene.h"

CCScene* GameScene::createScene()
{
    GameScene* layer = GameScene::create();
    CCScene* scene = CCScene::create();
    scene->addChild(layer);
    return scene;
}

bool GameScene::init() {
    // 1. super init first
    if (!CCLayer::init())
    {
        return false;
    }
    CCSprite* sprite = CCSprite::create("CloseSelected.png");
    CCSize winsize = CCDirector::sharedDirector()->getWinSize();
    sprite->setPosition(ccp(winsize.width / 2, winsize.height / 2));
    this->addChild(sprite);
    return true;
}